package cn.zhc.controller;


import cn.zhc.bean.Border;
import cn.zhc.service.BorderService;
import cn.zhc.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("Border")
@CrossOrigin
public class BorderController {
    @Autowired
    BorderService borderService;

    @GetMapping("list")
    public Result getlist(){
        List<Border> list=borderService.list();
        return Result.success(list);
    }

//    @GetMapping("add")
//    public Result add(@RequestBody Border border){
//
//    }

}
